package com.kynnn.cloud.attribute_converter.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kynnn.cloud.attribute_converter.converter.ListToStringConverter;
import com.kynnn.cloud.attribute_converter.handler.ListTypeHandler;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@TableName(value = "mybatis_entity")
@Accessors(chain = true)
public class MybatisEntity {

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @TableField(value = "ids",typeHandler = ListTypeHandler.class)
    private List<String> ids;

}
